import request from '@/utils/request'
export function  getAllCategorys() {
  return request({
    'url': '/article/getCategorys',
    'method': 'get',
  })
}
export function getConArticle(articleId) {
  return request({
    url: '/article/getConArticle',
    'method': 'get',
	 params: {
	      articleId: articleId
	    }
  })
}


export function addMyComment(text, name, findId) {
  return request({
    url: '/article/addMyComment',
    method: 'post',
    data: {
      text: text,
      name: name,
      findId: findId
    },
	 header: {
	     'content-type': 'application/x-www-form-urlencoded' 
	  },
  });
}

export function addArticle(data) {
  return request({
    url: '/article/addArticle',
    method: 'post',
    data: data,
  });
}